﻿using UnityEngine;

namespace winS.Unity.Geometry
{
    /// <summary>
    /// 盒型(OBB)
    /// </summary>
    public struct Box
    {
        public Vector3 size { get; set; }
        public Vector3 center { get; set; }
        public Vector3 forwardDirection { get; set; }

        public Box(Vector3 size, Vector3 center, Vector3 forwardDirection)
        {
            this.size = size;
            this.center = center;
            this.forwardDirection = forwardDirection;
        }
    }
}